<%@ taglib prefix="nls" uri="http://www.vacoor.com/el/nls/functions" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/view/include/taglibs.jspf" %>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <link rel="stylesheet" href="${ctx}/css/admin.css"/>
</head>
<body>
<c:set var="lang" value="${empty param.lang ? 'ja': param.lang}" />
<div class="formHeader"> <span class="title">${nls:t('添加管理员')}</span> <a href="javascript:location.reload();" class="reload">${nls:t('刷新')}</a> </div>
<form name="form" id="form" method="post" action="admin_save.php" onsubmit="return cfm_admin();">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
        <tbody><tr>
            <td width="25%" height="40" align="right">${nls:t('用户名')}：</td>
            <td width="75%"><input type="text" name="username" class="input" id="username">
                <span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
        </tr>
        <tr>
            <td height="40" align="right">${nls:t('密 码')}：</td>
            <td><input type="password" name="password" class="input" id="password">
                <span class="maroon">*</span><span class="cnote">${nls:t('6-16个字符组成，区分大小写')}</span></td>
        </tr>
        <tr>
            <td height="40" align="right">确　认：</td>
            <td><input type="password" name="repassword" class="input" id="repassword">
                <span class="maroon">*</span></td>
        </tr>
        <tr>
            <td height="40" align="right">提　问：</td>
            <td><select name="question" id="question">
                <option value="0">无安全提问</option><option value="1">母亲的名字</option><option value="2">爷爷的名字</option><option value="3">父亲出生的城市</option><option value="4">你其中一位老师的名字</option><option value="5">你个人计算机的型号</option><option value="6">你最喜欢的餐馆名称</option><option value="7">驾驶执照最后四位数字</option>				</select></td>
        </tr>
        <tr>
            <td height="40" align="right">回　答：</td>
            <td><input type="text" name="answer" class="input" id="answer"></td>
        </tr>
        <tr>
            <td height="40" align="right">昵　称：</td>
            <td><input type="text" name="nickname" class="input" id="nickname">
                <span class="maroon">&nbsp;</span><span class="cnote">用于文章作者的显示</span></td>
        </tr>
        <tr>
            <td height="40" align="right">管理组：</td>
            <td><select name="levelname" id="levelname">
                <option value="1">超级管理员</option><option value="2">站点管理员</option><option value="3">文章发布员</option>				</select></td>
        </tr>
        <tr class="nb">
            <td height="40" align="right">审　核：</td>
            <td><input type="radio" name="checkadmin" value="true" checked="checked">
                已审核&nbsp;
                <input type="radio" name="checkadmin" value="false">
                未审核</td>
        </tr>
        </tbody></table>
    <div class="formSubBtn">
        <input type="submit" class="submit" value="提交">
        <input type="button" class="back" value="返回" onclick="history.go(-1);">
        <input type="hidden" name="action" id="action" value="add">
    </div>
</form>
<form action="/lang/upload" method="post" enctype="multipart/form-data">
    <input name="lang" type="text"/>
    <input type="file" name="file" />
    <input type="submit" value="submit"/>
</form>
<script type="text/javascript">
    function getLang(filename) {
        filename = filename || '';
        var filename.lastIndexOf('.');
    }
</script>
</body>
</html>
